package com.andnnl.num;

import java.util.Arrays;

/**
 * Created by chenss on 2021/4/7.
 */
public class RemoveDuplicatesNumTest {
    public static void main(String[] args) {
        int[] nums = {1, 5, 2, 6, 2, 3, 5, 1, 6};
        Arrays.stream(nums).sorted().distinct().forEach(System.out::println);

        System.out.println("------");
        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }
        System.out.println("------");
        int x=124;
        int y=3425;
        x=x^y;
        y=x^y;
        x=x^y;
        System.out.println(x);
        System.out.println(y);
    }
}
